package com.vehicle.mapper;

import com.vehicle.pojo.Petrol;
import com.vehicle.pojo.PetrolRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PetrolRecordMapper {

    List<PetrolRecord> findAllPetrolRecord(@Param("carid") Integer carid);

    void deleteIds(@Param("idArray") String idArray);

    //查找最后一次的加油记录
    PetrolRecord findFinalRecord(@Param("carid") Integer carid);

    //添加加油记录
    void petrolRecordAdd(PetrolRecord petrolRecord);

    //根据Id查询记录
    PetrolRecord findPetrolRecordById(Integer petrolid);

    //修改加油记录
    void petrolRecordUpdate(PetrolRecord petrolRecord);

    //删除修改记录
    void petrolRecordDelete(Integer petrolid);

}
